package com.cn.xiaonuo.slbfinances.slborders.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cn.xiaonuo.slbfinances.slborders.entity.InOutOrder;
import com.cn.xiaonuo.slbfinances.slborders.entity.SlOrder;
import com.cn.xiaonuo.slbfinances.slborders.entity.SlOrderDetail;
import com.cn.xiaonuo.slbfinances.slborders.param.SlbOrderParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Mapper
@Repository
public interface CmOrderMapper extends BaseMapper<SlOrder> {
   /**
     * 查询平台入账订单
     * @param slbOrderParam
     * @return
     */
    List<Map<String, Object>> yunList(SlbOrderParam slbOrderParam);
    /**
     * 查询匀贸商城入账总额
     * @param slbOrderParam
     * @return
     */
    Map<String, Object> yunListSum(SlbOrderParam slbOrderParam);

    //根据订单号查询订单明细
    List<SlOrderDetail> listOrderDetail(@Param("orderId")Integer orderId);

 /**
  * 查询平台入账订单
  * @param slbOrderParam
  * @return
  */
 List<InOutOrder> inOutOrderList(SlbOrderParam slbOrderParam);

 List<Map<String,Object>> selectYunMaoExcel(SlbOrderParam param);
}
